﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Users/Users.Master" AutoEventWireup="true"
    CodeBehind="ViewListAddress.aspx.cs" Inherits="Pantry.Web.Users.ViewListAddress" %>

<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="g_12">
        <div class="widget_header wwOptions">
            <h4 class="widget_header_title wwIcon i_16_data">
                Search Postcode</h4>
        </div>
        <div class="widget_contents noPadding ">
            <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
                <div class="dtTop">
                    <div class="dtFilter">
                        <div id="DataTables_Table_0_filter" class="dataTables_filter">
                            <div style="float: left; width: auto; margin-left: 5px; height: auto">
                                <label>
                                    Postcode:
                                </label>
                                <asp:TextBox ID="txtPostcode" runat="server" class="input_text" Width="112px"></asp:TextBox>
                                <label style="margin-left: 10px">
                                    Street:
                                </label>
                                <asp:TextBox ID="txtStreet" runat="server" class="input_text" Width="113px"></asp:TextBox>
                                <label style="margin-left: 10px">
                                    Town:
                                </label>
                                <asp:TextBox ID="txtTown" runat="server" class="input_text" Width="105px"></asp:TextBox>
                            </div>
                            <div style="width: auto; margin-right: 5px;  margin-left:5px; float: right;">
                                <asp:Button ID="ButtonSearch" runat="server" class="simple_buttons" Text="Search" OnClick="AddressSearch_Click" />
                                <asp:Button ID="ButtonNone" runat="server" class="simple_buttons" Text="None" OnClick="None_Click" />
                                <asp:Button ID="ButtonClear" runat="server" class="simple_buttons" Text="Clear" OnClick="Clear_Click" />
                            </div>
                        </div>
                    </div>
                    <div style="clear: both;">
                    </div>
                </div>
                <div class="dtTables">
                    <table class="tables noObOLine dataTable">
                        <thead>
                            <tr role="row">
                                <th style=" width:5%;">
                                </th>
                                <th aria-label="Rendering engine: activate to sort column descending" aria-sort="ascending"
                                    style="width: 20%;" colspan="1" rowspan="1" aria-controls="DataTables_Table_0"
                                    tabindex="0" role="columnheader" >
                                    Address
                                </th>
                                <th aria-label="Browser: activate to sort column ascending" style="width: 20%;"
                                    colspan="1" rowspan="1" aria-controls="DataTables_Table_0" tabindex="0" role="columnheader"
                                    >
                                    Post code
                                </th>
                                <th aria-label="Platform: activate to sort column ascending" style="width: 20%;"
                                    colspan="1" rowspan="1" aria-controls="DataTables_Table_0" tabindex="0" role="columnheader"
                                    >
                                    Town
                                </th>
                                <th aria-label="CSS grade: activate to sort column ascending" style="width: 20%;"
                                    colspan="1" rowspan="1" aria-controls="DataTables_Table_0" tabindex="0" role="columnheader"
                                    >
                                    County
                                </th>
                                <th aria-label="CSS grade: activate to sort column ascending" style="width: 25%;"
                                    colspan="1" rowspan="1" aria-controls="DataTables_Table_0" tabindex="0" role="columnheader"
                                    >
                                    Country
                                </th>
                            </tr>
                        </thead>
                        <tbody aria-relevant="all" aria-live="polite" role="alert">
                            <asp:Repeater ID="RepeaterAddress" runat="server">
                                <ItemTemplate>
                                    <tr class="odd">
                                        <td>
                                            <input type="radio" name="radio_name" class="simple_form" value="<%#Eval("Id") %>"/>
                                        </td>
                                        <td>
                                            <%#Eval("Address") %>
                                        </td>
                                        <td>
                                            <%#Eval("Postcode") %>
                                        </td>
                                        <td>
                                            <%#Eval("Town") %>
                                        </td>
                                        <td>
                                            <%#Eval("County") %>
                                        </td>
                                        <td>
                                            <%#Eval("Country") %>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>                            
                        </tbody>
                    </table>
                </div>
                <div class="dtBottom">
                    <div class="dtInfo">
                        <div class="dtPagination">
                            <div id="Div1" class="dataTables_paginate paging_full_numbers">
                                    <asp:Button ID="btnSelect" runat="server" Text="Select" CssClass="first paginate_button paginate_button_disabled simple_buttons"  />
                                    &nbsp;
                                    <asp:Button ID="btnClose" runat="server" Text="Close" CssClass="previous paginate_button paginate_button_disabled simple_buttons" />
                                </div>
                        </div>
                    </div>
                    <div class="dtPagination">
                                <cc1:CollectionPager ID="CollectionPager" runat="server" BackText="Back" FirstText="First" ShowLabel="False" ShowFirstLast="False" NextText="Next" ResultsLocation="None" PageNumbersSeparator="">
                            </cc1:CollectionPager>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function() {
          $('ul.tab_nav li').removeClass("active_tab");
          $('ul.tab_nav li.i_32_tables').addClass("active_tab");
        });
    </script>
</asp:Content>
